package com.project.springboot.interf;

/**
 * description: java8 接口新特性 默认方法、静态方法
 * @author 朱正磊
 * @date 2024-03-21 14:14:11
 */
public interface MyInterface {

    void eat();

    default String getName(String name) {
        return name;
    }

    static void sing(String song) {
        System.out.println("sing = " + song);
    }

}
